﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Volo.Abp.Validation;

using Wms.Manager.Common.Dtos;

namespace Wms.Manager.Common
{
    public interface IImportExportService<T> where T : class
    {
        Task<byte[]> ExportToExcelAsync(IEnumerable<T> data, string fileName = null);
        [DisableValidation]
        Task<List<T>> ImportFromExcelAsync(Stream fileStream);
        [DisableValidation]
        Task<ImportResult<T>> ImportFromExcelWithValidationAsync(Stream fileStream);
    }
}
